## libMultiRobotPlanning (header-only) integration
# Exposes dep/common/libMultiRobotPlanning as an interface include target.

if (EXISTS "${DEP_COMMON_DIR}/libMultiRobotPlanning/include")
    add_library(libmrlp INTERFACE)
    # expose the public include folder so includes like <libMultiRobotPlanning/cbs.hpp> work
    target_include_directories(libmrlp INTERFACE "${DEP_COMMON_DIR}/libMultiRobotPlanning/include")

    # libMultiRobotPlanning depends on Boost headers
    if(TARGET Boost::headers)
        target_link_libraries(libmrlp INTERFACE Boost::headers)
        message(STATUS "libMultiRobotPlanning linked to Boost::headers")
    elseif(EXISTS "${DEP_PLATFORM_DIR}/boost/include/boost")
        # Fallback: directly add boost include path
        target_include_directories(libmrlp INTERFACE "${DEP_PLATFORM_DIR}/boost/include")
        message(STATUS "libMultiRobotPlanning using vendored Boost includes: ${DEP_PLATFORM_DIR}/boost/include")
    else()
        message(WARNING "libMultiRobotPlanning requires Boost headers but none found")
    endif()

    add_library(libmrlp::libmrlp ALIAS libmrlp)
    message(STATUS "libMultiRobotPlanning headers at: ${DEP_COMMON_DIR}/libMultiRobotPlanning/include")
else()
    message(WARNING "libMultiRobotPlanning not found under ${DEP_COMMON_DIR}/libMultiRobotPlanning/include")
endif()
